/*
 * Dto class 
 * Created on 6 juin 2013 ( Time 15:03:48 )
 */
// This Bean has a basic Primary Key (not composite) 

package org.demo.rapport.bean;

import java.io.Serializable;

import javax.persistence.*;

import javax.validation.constraints.* ;
import org.hibernate.validator.constraints.* ;

import java.util.Date;

import javax.persistence.*;

@Entity
@Table(name="rapport", catalog="dbscoremanager" )
public class Rapport implements Serializable
{
    private static final long serialVersionUID = 1L;

    //----------------------------------------------------------------------
    // ENTITY PRIMARY KEY ( BASED ON A SINGLE FIELD )
    //----------------------------------------------------------------------
    @Id
    @Column(name="idRapport", nullable=false)
    private int        idrapport    ;


    //----------------------------------------------------------------------
    // ENTITY FIELDS 
    //----------------------------------------------------------------------    
    @Column(name="idEmploye")
    private Integer    idemploye    ;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="tempsPresence")
    private Date       tempspresence ;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="debutPresence")
    private Date       debutpresence ;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="finPresence")
    private Date       finpresence  ;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="retard")
    private Date       retard       ;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="sortieTot")
    private Date       sortietot    ;

    //----------------------------------------------------------------------
    // ENTITY LINKS ( RELATIONSHIP )
    //----------------------------------------------------------------------

    //----------------------------------------------------------------------
    // CONSTRUCTOR(S)
    //----------------------------------------------------------------------
    public Rapport()
    {
        super();
    }
    
    //----------------------------------------------------------------------
    // GETTER & SETTER FOR THE KEY FIELD
    //----------------------------------------------------------------------
    public void setIdrapport( int value )
    {
        this.idrapport = value;
    }
    public int getIdrapport()
    {
        return this.idrapport;
    }

    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR FIELDS
    //----------------------------------------------------------------------
    //--- DATABSE MAPPING : idEmploye ( INT ) 
    public void setIdemploye( Integer value )
    {
        this.idemploye = value;
    }
    public Integer getIdemploye()
    {
        return this.idemploye;
    }

    //--- DATABSE MAPPING : tempsPresence ( DATETIME ) 
    public void setTempspresence( Date value )
    {
        this.tempspresence = value;
    }
    public Date getTempspresence()
    {
        return this.tempspresence;
    }

    //--- DATABSE MAPPING : debutPresence ( DATETIME ) 
    public void setDebutpresence( Date value )
    {
        this.debutpresence = value;
    }
    public Date getDebutpresence()
    {
        return this.debutpresence;
    }

    //--- DATABSE MAPPING : finPresence ( DATETIME ) 
    public void setFinpresence( Date value )
    {
        this.finpresence = value;
    }
    public Date getFinpresence()
    {
        return this.finpresence;
    }

    //--- DATABSE MAPPING : retard ( DATETIME ) 
    public void setRetard( Date value )
    {
        this.retard = value;
    }
    public Date getRetard()
    {
        return this.retard;
    }

    //--- DATABSE MAPPING : sortieTot ( DATETIME ) 
    public void setSortietot( Date value )
    {
        this.sortietot = value;
    }
    public Date getSortietot()
    {
        return this.sortietot;
    }


    
    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR LINKS
    //----------------------------------------------------------------------


}
